package com.hnucm.cooklife.contract.order;

import com.hnucm.cooklife.base.IBaseView;
import com.hnucm.cooklife.bean.db.OrderSec;

import java.util.List;

import io.reactivex.Observable;

public class Contract {
    public interface IOrderModel{
        Observable<List<OrderSec>> loadOrder();
        Observable<List<OrderSec>> refreshOrder();
    }

    public interface IOrderView extends IBaseView{
        void onLoadOrder(List<OrderSec> orderSecList);
        void onRefreshOrder(List<OrderSec> orderSecList);
    }

    public interface IOrderPresenter{
        void loadOrder();
        void refreshOrder();
    }
}
